﻿using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace ViewServices
{
    internal class MvcHelper
    {
        public static RequestContext RequestContext
        {
            get
            {
                return ((MvcHandler)HttpContext.Current.Handler).RequestContext;
            }
        }

        public static UrlHelper UrlHelper
        {
            get
            {
                return new UrlHelper(RequestContext);
            }
        }
    }
}
